import { createNativeStackNavigator } from '@react-navigation/native-stack'

import Shop from './shop'
import Map from './merchant_map'
import detail from '../home/detail'
import { PayProvider } from '../AppContext'
const Stack = createNativeStackNavigator()

export default function AddressLayout() {
  return (
    <PayProvider>
      <Stack.Navigator screenOptions={{ headerShown: false }}>

        <Stack.Screen name="shop" component={Shop} options={{ headerShown: true, headerTitle: '店铺详情', headerTitleAlign: 'center' }} />
        <Stack.Screen name="merchant_map" component={Map} options={{ headerShown: true, headerTitle: '地址', headerTitleAlign: 'center' }} />
        <Stack.Screen name="detail" component={detail} />

      </Stack.Navigator>
    </PayProvider>
  )
}